<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>项目评级问答-评级报表</title>
		<link rel="stylesheet" href="__PUBLIC__/home/css/public.css" />
		<link rel="stylesheet" href="__PUBLIC__/home/css/rating.css" />
		<script language="JavaScript" src="__PUBLIC__/home/js/jquery.js"></script>
		<script type="text/javascript" src="__PUBLIC__/validform/Validform_v5.3.2.js"></script>
		<script type="text/javascript" src="__PUBLIC__/validform/Validform_Datatype.js"></script>
	</head>

	<body>
		
		<div class="head">
			<img src="__PUBLIC__/home/images/title.png"  />
			<p><?=date('Y')?>年<?=date('m')?>月<?=date('d')?>日&nbsp;<?=date('H')?>时</p>
		</div>
		<div class="formbody">
		<div class="cont">
		<form id="rateform" name="rateform" action="{:U('index/rating',array('item_id'=>$iteminfo['item_id']))}" method="post">
		<volist name="rateinfo" id="topcate" key="k">
			<div class="list">
				<div class="title">
					<h1 class="hh">{$k}、{$topcate.top_name}</h1>
				</div>
				<volist name="topcate.subcate" id="subcate" key="key">
				<div class="bingo">
					<p> {$subcate.sub_name}</p>
					<if condition="$subcate.sub_type eq '1' "><!--单选-->
					<volist name="subcate.threecate" id="threecate">
					<label><input name="info[{$subcate.sub_id}]" type="radio" value="{$threecate.three_id}" datatype="*" errormsg="不能为空！" <if condition="$rate[$threecate['three_id']]['rate_value'] eq '1' ">checked</if> />{$threecate.three_name}</label>
					</volist>
					<i class="Validform_checktip"></i>
					<elseif condition="$subcate.sub_type eq '2' " />
					<volist name="subcate.threecate" id="threecate">
						<label><input name="info[{$subcate.sub_id}][]" type="checkbox" value="{$threecate.three_id}" datatype="*" errormsg="不能为空！"/>{$threecate.three_name}</label>
						</volist>
						<i class="Validform_checktip"></i>
					<elseif condition="$subcate.sub_type eq '3' " /><!--数字填写-->
						<volist name="subcate.threecate" id="threecate">
						<label>{$threecate.three_name}</label><input name="info[{$subcate.sub_id}][{$threecate.three_id}]" type="text" value="" datatype="*" errormsg="不能为空！"  style="height:25px;width:50px;" maxlength="5" /><i class="Validform_checktip"></i>
						</volist>
					<elseif condition="$subcate.sub_type eq '4' " /><!--描述填写-->
						<volist name="subcate.threecate" id="threecate">
						<!--<label>{$threecate.three_name}</label>-->
						<textarea name="info[{$subcate.sub_id}][{$threecate.three_id}]" cols="" rows="" style="width: 300px;height: 100px;" datatype="*" errormsg="不能为空！" maxlength="200"></textarea><i class="Validform_checktip"></i>
						</volist>
					</if>	
				</div>
				</volist>
			</div>
			</volist>
			</form>
			<button class="btn" onclick="$('#rateform').submit()">确认保存</button>
		</div>
		</div>
		<div class="bottom">
			<p>技术支持：&nbsp;西安弈聪信息技术有限公司&nbsp;&nbsp;<?=date('Y')?>年<?=date('m')?>月<?=date('d')?>日</p>
		</div>
	</body>
<script>
			$(function(){
				$("#rateform").Validform({
					//tiptype:2
					tiptype:function(msg,o,cssctl){
						var objtip=o.obj.siblings(".Validform_checktip");
						cssctl(objtip,o.type);
						objtip.text(msg);
					}
				});
			});
		</script>
</html>